//
//  SYColorConfig.h
//  SYPerfectDemo
//
//  Created by Lssyyy on 2018/4/26.
//  Copyright © 2018年 Lssyyy. All rights reserved.
//

#ifndef SYColorConfig_h
#define SYColorConfig_h

#define kNaviColor UIColorWithRGB16Radix(0xDAA520)

#define kWhiteColor [UIColor whiteColor]
#define kBlackColor [UIColor blackColor]
// rgb颜色转换（16进制->10进制）
#define UIColorWithRGB16Radix(rgbValue) ([UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0])
//RGB颜色
#define UIColorWithRGBA(r,g,b,a) ([UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a])
#define UIColorWithRGB(r,g,b) (UIColorWithRGBA(r,g,b,1.0f))
//随机色
#define RandomColor (UIColorWithRGBA((arc4random_uniform(256) / 255.0),(arc4random_uniform(256) / 255.0),(arc4random_uniform(256) / 255.0),(arc4random_uniform(256) / 255.0)))
//[UIColor colorWithRed:(arc4random_uniform(256) / 255.0) green:(arc4random_uniform(256) / 255.0) blue:(arc4random_uniform(256) / 255.0) alpha:(arc4random_uniform(256) / 255.0)]
#endif /* SYColorConfig_h */
